package pkg.chemdrm;

import org.anddev.andengine.entity.sprite.Sprite;
import org.anddev.andengine.opengl.texture.region.TextureRegion;

public class ParticleStatic extends Sprite implements Particle 
{
	private float mLifetime = 0;

	public ParticleStatic(float pX, float pY, float pWidth, float pHeight, TextureRegion pTextureRegion) 
	{
		super(pX, pY, pWidth, pHeight, pTextureRegion);
		
		setVisible(false); // particles are hidden until otherwise stated.
	}

	public void setPath() 
	{
		setVisible(true);
		// no path for a static particle
	}

	public void update(float dt) 
	{
		mLifetime += dt;
		
		// static particles shan't die unless they are told to.
	}
	public void hide()
	{
		setVisible(false);
	}

}
